<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
        /* div{
            width: 100px;
            height: 100px;
            padding: 10px;
            margin: 10px;
            border: 1px solid red;
        } */
        span {
            background: yellow;
            padding: 10px;
            margin: 10px;
        }

        /* span元素（也就是行内元素）无论内边距还是外边距只能设置左右边距，不能设置上下边距。 */
        img {
            padding: 10px;
            margin: 10px;
        }
    </style>
</head>

<body>
    <div>
        00000
    </div>
    <span>我是span标签</span>
    <span>我是span标签</span>

    <div>11111111111111111111111</div>

    <img src="img1/2.png" alt="">
    <div>222222222222222222222</div>
</body>

</html>